var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.onZeroInfo(2);
            cm.curNodeEventEnd(true);
            cm.setInGameDirectionMode(true, true, true);
            cm.inGameDirectionEvent_AskAnswerTime(500);
            cm.curNodeEventEnd(true)
        } else {
            if (status === a++) {
                cm.spawnMobLimit(9300788, 1, -235, -637, 100);
                cm.sendNormalTalk("#p2400006#！#p2400006#！我为#p2400006#你准备了可爱的敌人！#r远古精灵#k！它在冒险岛世界相当有名呢！", 33, 2460000, false, true)
            } else {
                if (status === a++) {
                    cm.sendNormalTalk("我想就算是再多的远古精灵，也会被#p2400006#你全部打倒的！即使没有#p2400005#！实际上，#p2400005#更擅长理论，战斗应该不如#p2400006#你吧？", 33, 2460000, true, true)
                } else {
                    if (status === a++) {
                        cm.sendNormalTalk("我期待看到#p2400006#你的英姿~", 33, 2460000, true, true)
                    } else {
                        if (status === a++) {
                            cm.setInGameDirectionMode(false, true, false);
                            cm.dispose()
                        }
                    }
                }
            }
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};